itertools.combinations() hackerrank solution python